home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.networking,comp.sys.amiga.programmer
- Path: yama.mcc.ac.uk!liv!lucs!news
- From: fish@csc.liv.ac.uk (S.E. Morris)
- Subject: Re: CGI-programming for AWS ?
- Sender: news@csc.liv.ac.uk (News Eater)
- Message-ID: <DoKFry.Myu@csc.liv.ac.uk>
- Date: Wed, 20 Mar 1996 12:23:58 GMT
- References: <1686.6645T919T930@vip.cybercity.dk>
- Nntp-Posting-Host: fish@jordan.csc.liv.ac.uk
- Organization: Computer Science, University of Liverpool, UK
- X-Newsreader: knews 0.9.4
-
- In article <1686.6645T919T930@vip.cybercity.dk>,
- bipsen@vip.cybercity.dk (Brian Ipsen) writes:
- >Hello!
- >
- > When "surfing" on many pages, I often discover many different kind of forms,
- >and when I take a look at the HTML-source, they all seem to have an entry
- >like this (code from AMD's WWW-site):
-
- [snipped...]
-
- > I wonder what is happening, when the users clicks on "submit" - I know,
- >that the form is handled by the program in /cgi-bin/epdcontest , but
- >how does this program get the input from the browser and so on ???
-
- Using stdin. The contents of the form are sent to the CGI program
- as one long string, read from the stdin. The output from a CGI
- program is sent on stdout.
-
- This way, any language which can use stdin/stdout can be used as a
- CGI script.
-
- >
- > In general I'm no expert in HTML, I prefer doing this by the Try-And-Error
- >principle :-) - But if it cannot be said shortly, are there any C-sourcecode
- >for cgi-binaries somewhere (hopefully ANSI C) or do I have to start with
- >Perl (I've heard, that many uses Perl).
-
- No, C is fine. The program is run at the server end (unlike, say Java
- applets which are run on the client machine) so you will not be able to
- get hold of any source code or even the binary.
-
- If you plan to write CGI scripts yourself, check first with your
- Webmaster, as there are certain *serious* security implications with
- running such stuff. (He/she will probably insist in viewing your
- source code before you can use it!)
-
- ><tsb> GizmoSoft Productions
- >| bipsen@vip.cybercity.dk |
- >| Brian Ipsen |
- >--
- >Amiga2000/A2630/9MB/Oktagon SCSI/Quantum 1.08GB/Toshiba XM5201
- >
- >
-
-